from django.contrib import admin

# Register your models here.
from .models import Config
from import_export.admin import ImportExportModelAdmin, ExportMixin
from .resource import ConfigResource

# 源生态
# @admin.register(Config)
# class ConfigAdmin(admin.ModelAdmin):
#     list_display = ('id', 'no', 'value', 'name', 'status', 'comment', 'create_time', 'update_time')
#
#     list_per_page = 30


# 支持数据导入/导出
@admin.register(Config)
class ConfigAdmin(ImportExportModelAdmin):
    resource_class = ConfigResource